gh-145521: Add 'infer_variance' parameter to ParamSpec class#145522
Conversation
|
Should we add some text about the version this changed (e.g. 3.12)? |
We can do. But we shouldn't devote too much space to this, because ParamSpecs are always invariant. It's a bit confusing that they have this parameter; type checkers will just ignore it. |
Documentation build overview
|
|
Thanks @hyperkai for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
|
Sorry, @hyperkai and @JelleZijlstra, I could not cleanly backport this to |
|
Sorry, @hyperkai and @JelleZijlstra, I could not cleanly backport this to |
|
@hyperkai can you please do the backports? |
|
Please don't forget about backports. |
|
GH-153824 is a backport of this pull request to the 3.14 branch. |
|
GH-153825 is a backport of this pull request to the 3.13 branch. |
Fix: #145521
📚 Documentation preview 📚: https://cpython-previews--145522.org.readthedocs.build/
infer_varianceparameter withtyping.ParamSpecexplanation #145521